package org.shangma.exercise;

/**
 * @classname:demo03
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/24 18:55
 * @version: 0.1
 * @since:1.8
 */
public class demo03 {
    public static void main(String[] args) {
//        已知圆的半径radius= 1.5，求其面积 (Java中π用Math.PI表示)
        double pi = Math.PI;
        double radius = 1.5;
        double area = pi*Math.pow(radius,2);
        System.out.println("该圆形的面积为:"+area);
    }
}
